  @Mock
    private UserInfoSupport userInfoSupport;


// 实现类
Field agentClient = BsEventMonitorIndicatorQueryService.class.getDeclaredField("userInfoSupport");
        agentClient.setAccessible(true);
        agentClient.set(bsEventMonitorIndicatorQueryService, userInfoSupport);

        UserInfo userInfo = new UserInfo();
        userInfo.setId("1430157287644860416");
        Mockito.when(userInfoSupport.getCurrentUserInfo())
                .thenReturn(userInfo);

                // 注意mockito 不能模拟static的方法